package pojo;

/**
 * @author CaiKe
 * @create 2021/1/8
 */
public class Goods {
    private Integer id ;
    private Integer storeId;
    private Integer ownerId;
    private String name;
    private String code;
    private Integer num;
    private String type;
    private String shop;
    private String unit;
    private String color;
    /** 型号格式 */
    private String model;
    /** 材质 */
    private String texture;
    /** 预设 进价 */
    private String prePurchasing;
    /** 预设 售价 */
    private String preSelling;
    private String description;
    private String updateTime;
    private String img;
    private String storeName;


    public Goods() {
    }

    public Goods(Integer id, Integer storeId, Integer ownerId, String name, String code, Integer num, String type, String shop, String unit, String color, String model, String texture, String prePurchasing, String preSelling, String description, String updateTime, String storeName) {
        this.id = id;
        this.storeId = storeId;
        this.ownerId = ownerId;
        this.name = name;
        this.code = code;
        this.num = num;
        this.type = type;
        this.shop = shop;
        this.unit = unit;
        this.color = color;
        this.model = model;
        this.texture = texture;
        this.prePurchasing = prePurchasing;
        this.preSelling = preSelling;
        this.description = description;
        this.updateTime = updateTime;
        this.storeName = storeName;
    }

    public Goods(Integer id, Integer storeId, Integer ownerId, String name, String code, int num, String type, String shop, String unit, String color, String model, String texture, String prePurchasing, String preSelling, String description, String updateTime, String img, String storeName) {
        this.id = id;
        this.storeId = storeId;
        this.ownerId = ownerId;
        this.name = name;
        this.code = code;
        this.num = num;
        this.type = type;
        this.shop = shop;
        this.unit = unit;
        this.color = color;
        this.model = model;
        this.texture = texture;
        this.prePurchasing = prePurchasing;
        this.preSelling = preSelling;
        this.description = description;
        this.updateTime = updateTime;
        this.img = img;
        this.storeName = storeName;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("User{");
        sb.append("id=").append(id);
        sb.append(", storeId=").append(storeId);
        sb.append(", ownerId=").append(ownerId);
        sb.append(", name='").append(name).append('\'');
        sb.append(", code='").append(code).append('\'');
        sb.append(", num=").append(num);
        sb.append(", type='").append(type).append('\'');
        sb.append(", shop='").append(shop).append('\'');
        sb.append(", unit='").append(unit).append('\'');
        sb.append(", color='").append(color).append('\'');
        sb.append(", model='").append(model).append('\'');
        sb.append(", texture='").append(texture).append('\'');
        sb.append(", prePurchasing='").append(prePurchasing).append('\'');
        sb.append(", preSelling='").append(preSelling).append('\'');
        sb.append(", description='").append(description).append('\'');
        sb.append(", updateTime='").append(updateTime).append('\'');
        sb.append(", img='").append(img).append('\'');
        sb.append(", storeName='").append(storeName).append('\'');
        sb.append('}');
        return sb.toString();
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getStoreId() {
        return storeId;
    }

    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    public int getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(int ownerId) {
        this.ownerId = ownerId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getShop() {
        return shop;
    }

    public void setShop(String shop) {
        this.shop = shop;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getTexture() {
        return texture;
    }

    public void setTexture(String texture) {
        this.texture = texture;
    }

    public String getPrePurchasing() {
        return prePurchasing;
    }

    public void setPrePurchasing(String prePurchasing) {
        this.prePurchasing = prePurchasing;
    }

    public String getPreSelling() {
        return preSelling;
    }

    public void setPreSelling(String preSelling) {
        this.preSelling = preSelling;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }
}